package cfdt.ldl.web.api.request;

import cfdt.common.vo.BaseRequest;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;

@Schema(description = "登录接口请求参数")
@Data
@EqualsAndHashCode(callSuper = true)
public class LoginWebRequest extends BaseRequest {


    @Schema(description = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String userName;

    @Schema(description = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;

    @Schema(description = "手机号")
    private String phoneNumber;

    @Schema(description = "登录方式 10-手机号密码登录 20-用户名密码登录", example = "10")
    private String loginType;

    @Schema(description = "验证码")
    private String checkNumber;

    @Schema(description = "图形验证码")
    private String verificationCode;

    @Schema(description = "图形验证码流水号")
    private String codeSystemNo;

}
